package com.zhangwei.day41photo.fragment;


import android.app.Activity;
import android.support.v4.app.Fragment;
import android.util.Log;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EFragment;

@EFragment
public class BaseFragment extends Fragment {
    private static final String TAG = "BaseFragment";
    public Activity activity;


    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        this.activity = activity;
    }

    @AfterViews
    public void init() {
        initView();
        initData();
    }

    public void initView() {
        Log.e(TAG, "initView");
    }

    public void initData() {
        Log.e(TAG, "initData");
    }


}
